package cn.edu.pzhu.javaweb.service;

import cn.edu.pzhu.javaweb.pojo.*;

public interface UserService {
	    //1.注册
	    Result<String> regist(User user, Userinfo userinfo);
	    
	    //2.登录
	    Result<String> login(User user);
	    
	    //3.查看个人信息
	    Result<Userinfo> getPersonalInfo(String username);
	    
	    //4.修改个人信息
	    Result<String> updatePersonalInfo(Userinfo userinfo);
	    
	    //5.修改密码
	    Result<String> updatePassword(User user);
	    
	    //6.注销账户
	    Result<String> destroyAccount(String username);
	    
	    //7.查询用户是否存在
	    boolean checkUsername(String username);
}
